package com.ht.impl.dialogs;

import org.javabuilders.swing.SwingJavaBuilder;
import org.jdesktop.observablecollections.ObservableCollections;

import javax.swing.*;
import java.util.LinkedList;
import java.util.List;

/**
 * User: He Guohong
 * Date: 2010-8-10
 */
public class CustomMeasIdSetter extends JDialog {
    List<String> types = ObservableCollections.observableList(new LinkedList<String>());

    JTextField textField;
    public CustomMeasIdSetter(){
        SwingJavaBuilder.build(this);
    }
    
    private void frontButtonAction() {
        this.dispose();
        MeasurePointChooser pointChooser = MeasurePointChooser.getInstance();
        pointChooser.setModal(true);
        pointChooser.setVisible(true);

    }

    private void finishButtonAction(){
         this.dispose();
    }

    public String getCustomId() {
        return textField.getText().trim();
    }

}
